<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include  file="/jsps/front/common/taglibs.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="<c:url value="/jsps/front/css/application.css"></c:url>">
	<link rel="stylesheet" type="text/css" href="<c:url value="/jsps/front/css/listdata.css"/>">
  </head>
  
  <body style="background-color:white;">
     <div class="listTitle" style="background-color:#e3fcff;">
			>>  订单主表
		</div>

	<button style="float:right;" onclick="history.go(-1);">
						返 回
					</button>
								
	<table cellspacing=0 cellpadding=0 border=0 class="listable">
		<thead >
			<tr>
				<th>订单号</th>
				<th>收货人</th>
				<th>付款方式</th>
				<th>运送方式</th>
				<th>定单总金额</th>
				<th>定单状态</th>
				<th>送货地址</th>
				<th>邮编</th>
				<th>电话</th>
				<th>E-MAIL</th>
				<th>下单时间</th>
			</tr>
		</thead>
		<tbody>
  		<tr onMouseOver="changeTrColorMouseOver(this)" onMouseOut="changeTrColorMouseOut(this)">
  			<td>${order.orderNo}</td>
  			<td>${order.reallyName}</td>
  			<td>${order.setMony}</td>
  			<td>${order.post }</td>
  			<td>￥ ${order.orderAmount}</td>
  			<c:choose>
  				<c:when test="${order.sign==0}">
  					<td>已提交，未审核</td>
  				</c:when>
  				<c:when test="${order.sign==1}">
  					<td>已审核，未配货</td>
  				</c:when>
  				<c:when test="${order.sign==2}">
  					<td>已配货，未发货</td>
  				</c:when>
  				<c:when test="${order.sign==3}">
  					<td>已发货，未收货</td>
  				</c:when>
  				<c:when test="${order.sign==4}">
  					<td>已收货，交易成功</td>
  				</c:when>
  			</c:choose>
  			<td>${order.address }</td>
  			<td>${order.zipCode }</td>
  			<td>${order.tel }</td>
  			<td>${order.email }</td>
  			<td>${order.createDate}</td>
		</tbody>
	</table>

	<div class="listTitle" style="background-color:#e3fcff;">
			>>  订单明细表
		</div>
		<table class="listable" cellspacing=0 cellpadding=0 border=0>
				<thead>
					<tr>
						<th>
							订单编号
						</th>
						<th>
							商品编号&商品名称
						</th>
						<th>
							单价
						</th>
						<th>
							数量
						</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${items}" var="item">
						<tr bgColor="#EBF7CC">
							<td>
								${item.orderNo}
							</td>
							<td>
								${item.good.goodsNo} & ${item.good.goodsName}
							</td>
							
							<td>
								${item.good.goodsPrice}
							</td>
							<td>
								${item.goodNum}
							</td>
						</tr>
					</c:forEach>
				</tbody>
				<tbody>
				</tbody>
			</table>
		
  </body>
</html>
